import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import { routes } from '@/router/routes'

export const router = createRouter({
  // 模式
  history: createWebHistory(),
  // 路由
  routes: routes,
  //刷新滚动条归为
  scrollBehavior() {
    return {
      top: 0,
      left: 0
    }
  }
})
